package com.smomo.blog.controller;


import com.smomo.blog.common.ResponseResult;
import com.smomo.blog.service.IAProductService;
import com.smomo.blog.service.front.ApiUserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.naming.spi.DirStateFactory;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2023-12-12
 */
@RestController
@RequestMapping("/product")
@RequiredArgsConstructor
public class AProductController {
    private final IAProductService productService;

    @GetMapping("/Buy")
    public ResponseResult miaoSha()
    {
        return productService.buy();
    }

}
